package com.test.parking.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.test.parking.entity.Parking;
import com.test.parking.mapper.ParkingMapper;
import com.test.parking.service.IParkingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Jet
 * @since 2023-08-18
 */
@Service
public class ParkingServiceImpl extends ServiceImpl<ParkingMapper, Parking> implements IParkingService {

    @Override
    public IPage<Parking> findPage(Integer pageNum, Integer pageSize, Map<String, String> map) {
        IPage<Parking> page = baseMapper.findPage(new Page<>(pageNum,pageSize),map);
        return page;
    }
}
